import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SEntityId } from "./SEntityId";
type int = number;
//class SCrossGuildWarMatchInfo
    
    export  class SCrossGuildWarMatchInfo
    {
       

        public __write(arg1: SerializeStream): void
        {
            arg1.writeInt(this.guildWarId);
            arg1.writeBool(this.isEnd);
            arg1.writeDate(this.ringEndDt);
            arg1.writeInt(this.ring);
            this.guildId1.__write(arg1);
            arg1.writeString(this.guildName1);
            this.guildId2.__write(arg1);
            arg1.writeString(this.guildName2);
            this.winGuildId.__write(arg1);
            return;
        }

        public __read(arg1: SerializeStream): void
        {
            this.guildWarId = arg1.readInt();
            this.isEnd = arg1.readBool();
            this.ringEndDt = arg1.readDate();
            this.ring = arg1.readInt();
            this.guildId1 = new SEntityId();
            this.guildId1.__read(arg1);
            this.guildName1 = arg1.readString();
            this.guildId2 = new SEntityId();
            this.guildId2.__read(arg1);
            this.guildName2 = arg1.readString();
            this.winGuildId = new SEntityId();
            this.winGuildId.__read(arg1);
            return;
        }

        public /* var */guildWarId: int;

        public /* var */isEnd: Boolean;

        public /* var */ringEndDt: Date;

        public /* var */ring: int;

        public /* var */guildId1: SEntityId;

        public /* var */guildName1: string;

        public /* var */guildId2: SEntityId;

        public /* var */guildName2: string;

        public /* var */winGuildId: SEntityId;
    }
